package com.rcnie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_dish_score")
public class UserDishScore {
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("dish_id")
    private String dishId;

    private double score;

    @TableField(value = "create_time",fill= FieldFill.INSERT)
    private String createTime;

    @TableField(value = "update_time",fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
